<template>
	<view>
		<button @click="onLog()">log</button>
		<button @click="onDebug()">debug</button>
		<button @click="onInfo()">info</button>
		<button @click="onWarn()">warn</button>
		<button @click="onError()">error</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				myname:"hhl"
			}
		},
		methods: {
			onLog(){
				//打印日志函数
				console.log("onLog()-->myname:"+this.myname);
				// console.log("clog+enter");
			},
			onDebug(){
				console.debug("onDebug");
			},
			onInfo(){
				console.info("onInfo");
			},
			onWarn(){
				console.warn("onWarn");
				if(true){
					console.log("true");
				}else{
					console.warn("错")
				}
			},
			onError(){
				console.error("onError");
			}
		}
	}
</script>

<style>
button{
	margin: 15rpx;
}
</style>
